<html>

<!-- <script type="text/javascript" src="index.js"></script> -->



<div>
    欢迎使用本游戏引擎
</div>


<div style="display: flex">

    <button id="create">
        创建项目
    </button>

</div>

<div style="display: flex">

    <input id="input" value="" type="text" />

    <button id="edit" onclick="selectProject()">
        编辑项目
    </button>

</div>

<!-- <script>
        require('out/launch.js') //CommonJS
    </script> -->

</div>

<!-- <script src="out/launch.js"></script> -->
<script src="index.js"></script>

<script>


    function selectProject() {
        dialog.showOpenDialog({
            title: "请选择一个游戏文件夹!",
            properties: ["openDirectory"]
        }, (dirs) => {
            if (!dirs) {
                dialog.showMessageBox({ message: "由于您没有选择文件夹，本游戏引擎即将关闭" })
                app.exit();
            }
            else {
                callback(dirs[0])
            }
        });
    }

</script>

</html>